package org.liushao.entity;

import java.io.Serializable;

/**
 * @program: untitled
 * @ClassName Book
 * @description:
 * @author: 刘庆东
 * @create: 2024−11-28 13:45
 * @Version 1.0
 **/

public class Book implements Serializable {

    private int bid;
    private String bname;
    private double bprice;

    @Override
    public String toString() {
        return "Book{" +
                "bid=" + bid +
                ", bname='" + bname + '\'' +
                ", bprice=" + bprice +
                '}';
    }

    public Book(int bid, String bname, double bprice) {
        this.bid = bid;
        this.bname = bname;
        this.bprice = bprice;
    }

    public Book(String bname, double bprice) {

        this.bname = bname;
        this.bprice = bprice;
    }

    public Book() {
    }

    public int getBid() {
        return bid;
    }

    public void setBid(int bid) {
        this.bid = bid;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public double getBprice() {
        return bprice;
    }

    public void setBprice(double bprice) {
        this.bprice = bprice;
    }
}
